Skip to content

Conversation

@lionel-rowe
Copy link
Contributor

Fixes #80, which is still an issue in environments with process.nextTick but no setImmediate (e.g. browser with polyfilled Node process).

New order of preference as follows:

  1. setImmediate
- 2. process.nextTick
+ 2. scheduler.postTask
  3. setTimeout

scheduler.postTask seems to be the standardized browser API with the closest performance characteristics and ergonomics to setImmediate, but it's not yet implemented in all browsers (notably Safari support is still missing).

@dcodeIO dcodeIO merged commit 1211e9a into dcodeIO:main Nov 2, 2025
3 checks passed
Saunders-Trinity added a commit to Saunders-Trinity/GatorRide that referenced this pull request Nov 25, 2025
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)


<h3>Snyk has created this PR to upgrade bcryptjs from 3.0.2 to
3.0.3.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **1 version** ahead of your current
version.

- The recommended version was released **21 days ago**.




<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>bcryptjs</b></summary>
    <ul>
      <li>
<b>3.0.3</b> - <a
href="https://redirect.github.com/dcodeIO/bcrypt.js/releases/tag/v3.0.3">2025-11-02</a></br><h3>Bug
fixes</h3>
<ul>
<li><strong>Always yield to event loop before nextTick for async
versions (<a class="issue-link js-issue-link" data-error-text="Failed to
load title" data-id="3579428485" data-permission-text="Title is private"
data-url="dcodeIO/bcrypt.js#164"
data-hovercard-type="pull_request"
data-hovercard-url="/dcodeIO/bcrypt.js/pull/164/hovercard"
href="https://redirect.github.com/dcodeIO/bcrypt.js/pull/164">#164</a>)</strong>
(<a class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/dcodeIO/bcrypt.js/commit/1211e9a2213e0b3ee232a204b3ce899beebce31a/hovercard"
href="https://redirect.github.com/dcodeIO/bcrypt.js/commit/1211e9a2213e0b3ee232a204b3ce899beebce31a"><tt>1211e9a</tt></a>)</li>
</ul>
      </li>
      <li>
<b>3.0.2</b> - <a
href="https://redirect.github.com/dcodeIO/bcrypt.js/releases/tag/v3.0.2">2025-02-18</a></br><h3>Bug
fixes</h3>
<ul>
<li><strong>Use upstream fix to emit interop helpers</strong> (<a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/dcodeIO/bcrypt.js/commit/28e510389374f5736c447395443d4a6687325048/hovercard"
href="https://redirect.github.com/dcodeIO/bcrypt.js/commit/28e510389374f5736c447395443d4a6687325048"><tt>28e5103</tt></a>)</li>
</ul>
      </li>
    </ul>
from <a
href="https://redirect.github.com/dcodeIO/bcrypt.js/releases">bcryptjs
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJmZTZmYzRlMC03Njc3LTQxOWItOWY3ZS0zMTg5ZDY2ZjdjOGYiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImZlNmZjNGUwLTc2NzctNDE5Yi05ZjdlLTMxODlkNjZmN2M4ZiJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/nadae1010/project/4b43d5cd-fce2-45c9-8f9b-f145417ebc0e?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/nadae1010/project/4b43d5cd-fce2-45c9-8f9b-f145417ebc0e/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/nadae1010/project/4b43d5cd-fce2-45c9-8f9b-f145417ebc0e/settings/integration?pkg&#x3D;bcryptjs&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"bcryptjs","from":"3.0.2","to":"3.0.3"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"fe6fc4e0-7677-419b-9f7e-3189d66f7c8f","prPublicId":"fe6fc4e0-7677-419b-9f7e-3189d66f7c8f","packageManager":"npm","priorityScoreList":[],"projectPublicId":"4b43d5cd-fce2-45c9-8f9b-f145417ebc0e","projectUrl":"https://app.snyk.io/org/nadae1010/project/4b43d5cd-fce2-45c9-8f9b-f145417ebc0e?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":1,"publishedDate":"2025-11-02T22:09:43.466Z"},"vulns":[]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

process.nextTick still starves the event loop

2 participants